import request from '@/utils/request'

// 查询房产事件列表
export function listHouseEvent(query) {
  return request({
    url: '/house_sale/HouseEvent/list',
    method: 'get',
    params: query
  })
}

// 查询房产事件详细
export function getHouseEvent(houseeventid) {
  return request({
    url: '/house_sale/HouseEvent/' + houseeventid,
    method: 'get'
  })
}

// 新增房产事件
export function addHouseEvent(data) {
  return request({
    url: '/house_sale/HouseEvent',
    method: 'post',
    data: data
  })
}

// 修改房产事件
export function updateHouseEvent(data) {
  return request({
    url: '/house_sale/HouseEvent',
    method: 'put',
    data: data
  })
}

// 删除房产事件
export function delHouseEvent(houseeventid) {
  return request({
    url: '/house_sale/HouseEvent/' + houseeventid,
    method: 'delete'
  })
}
